<div id="event_date_wnd" class="event_date_wnd" >
  <div class="event_date_wnd_header" >
    <%= link_to_function(image_tag("add_event_wnd/close.gif"), update_page{|page| page.redirect_to(:controller => "ecases", :action => "show", :id => params[:id])})%>
  </div>
  <div class="event_date_wnd_content" >
      <div id="date_parse_validation"></div>
      <% form_remote_for :event, @event_info,
        :url => {:action => :save_event_info, :ecase_id => @ecase_id}  do |f| %>
      <p><input type="hidden" name="event[ecase_id]" value="<%=params[:id]%>" /></p>
      <div class="part"><p>Events Title</p><p>
      <%= f.text_field("title", :size => 51 , :maxlength=> 255) %></p></div>
      
      <div class="part"><p>Please provide a place information</p>
      <table class="date_chooser">
        <tr>
          <td>Date:</td>
          <td>Year:</td>
          <td>Month:</td>
          <td>Day:</td>
          <td>Hour (optional):</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="text" name="date[year]" value="" size="4" maxlength="4" /> </td>
          <td><input type="text" name="date[month]" value="" size="4" maxlength="2" /> </td>
          <td><input type="text" name="date[day]" value="" size="4" maxlength="2" /> </td>
          <td><input type="text" name="date[hour]" value="" size="2" maxlength="2" /> : <input type="text" name="date[min]" value="" size="2" maxlength="2" /> </td>
        </tr>
      </table>
      </div>
      <div class="part"><p>Events Tags</p><p>
      <%= f.text_field("tags", :size => 51 , :maxchars=> 255 ) %></p></div>
      <div class="part"><p>
      <%= image_submit_tag("add_event_wnd/save.gif") %>
      <%= link_to_function(image_tag("add_event_wnd/cancel.gif"), update_page{|page| page.redirect_to(:controller => "ecases", :action => "show", :id => params[:id])})%>
      </p></div>
    <% end %>
  </div>
</div>